package com.emergency.assist.domain;

import com.emergency.base.domain.BaseEntity;
import com.emergency.base.domain.Order;
import com.emergency.base.domain.PlanDetail;
import com.emergency.db.domain.info.RescueItem;
import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.persistence.*;
import java.util.List;

/**
 * Created by qiuyan.pei on 2020/4/26.
 */
@Entity
@Table(name = "bus_order_assign")
public class OrderAssign extends BaseEntity {
   @JsonIgnore
    @OneToOne(targetEntity=Order.class,fetch= FetchType.LAZY)
    @JoinColumn(name="order_id",referencedColumnName="id")
    private Order order;

   private String description;

    /**描述*/
    private String dispatch;//描述这个指令对应的需要调度内容


    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public String getDispatch() {
        return dispatch;
    }

    public void setDispatch(String dispatch) {
        this.dispatch = dispatch;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }


}
